import request from '@/utils/request'

// 付款信息
export function getApplyList(query) {
  return request({
    url: `/pay-apply/list`,
    method: 'post',
    data: {
      ...query
    }
  })
}


// 竣工验收
export function getCompleteList(query) {
  return request({
    url: `/complete-info/list`,
    method: 'post',
    data: {
      ...query
    }
  })
}


// 施工进度
export function getProgressList(query) {
  return request({
    url: `/contract-progress/list`,
    method: 'post',
    data: {
      ...query
    }
  })
}

//合同签订
export function getContractList(query) {
  return request({
    url: `/contract-info/list`,
    method: 'post',
    data: {
      ...query
    }
  })
}



// 承建商匹配
export function getMatchList(query) {
  return request({
    url: `/match-info/list`,
    method: 'post',
    data: {
      ...query
    }
  })
}

// 预算编制
export function getBudgetList(query) {
  return request({
    url: `/budget-info/list`,
    method: 'post',
    data: {
      ...query
    }
  })
}

// 设计图纸
export function getDesignList(query) {
  return request({
    url: `/design-info/list`,
    method: 'post',
    data: {
      ...query
    }
  })
}

// 改造记录 - 列表查询
export function getRecordList(query) {
  return request({
    url: `/pigfarm-project/selectDataList`,
    method: 'post',
    data: {
      pigfarmId:query
    }
  })
}

// 列表页查询
// export function getCompanyOptions(query) {
//   return request({
//     url: `/base-company/list`,
//     method: 'post',
//     // data: query
//   })
// }

// 列表页查询
export function delPigFarmInfo(query) {
  return request({
    url: `/pigfarm-info/delete/${query}`,
    method: 'get',
    // data: query
  })
}

// 列表页查询
export function listPigFarmInfo(query) {
  return request({
    url: '/pigfarm-info/list',
    method: 'post',
    data: query
  })
}
// 片区
export function getTreeselect() {
  return request({
    url: '/auth/dept/treeselect',
    method: 'get',
  })
}

export function updateFarmInfo(query) {
  return request({
    url: '/pigfarm-info/update',
    method: 'post',
    data: query
  })
}

// 新增档案
export function addFarmInfo(query) {
  return request({
    url: '/pigfarm-info/add',
    method: 'post',
    data: query
  })
}
// 查看详情
export function getDetailsById(query) {
  return request({
    url: `/pigfarm-info/getById/${query}`,
    method: 'get',
    // data: query
  })
}

// 猪场同步
export function zcSysnc(query) {
  return request({
    url: `/pigfarm-info/synch/${query}`,
    method: 'get',
  })
}
